package com.navi.loaddata.core.gpEntity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "m_ope_d", schema = "dm", catalog = "qmstst")
public class MOpeD {
    private int opeKey;
    private String unqSeqId;
    private Timestamp etlTimestamp;
    private String etlEventNode;
    private String etlEventName;
    private String etlEvtSeqId;
    private String opeId;
    private String opeVer;
    private String opeDsc;
    private Integer shopKeyFk;
    private String shopId;
    private String procId;
    private Integer eqptGpKeyFk;
    private String eqptGpId;
    private String eqptRunMode;
    private Integer opeSeqNo;
    private String pepLvl;
    private String upLoadId;
    private String dnLoadId;
    private String wkCentId;
    private String wkCentDsc;
    private String evtCate;
    private String evtUser;
    private Timestamp evtTimestamp;
    private String evtNote;
    private String opeType;

    @Id
    @Column(name = "ope_key")
    public int getOpeKey() {
        return opeKey;
    }

    public void setOpeKey(int opeKey) {
        this.opeKey = opeKey;
    }

    @Basic
    @Column(name = "unq_seq_id")
    public String getUnqSeqId() {
        return unqSeqId;
    }

    public void setUnqSeqId(String unqSeqId) {
        this.unqSeqId = unqSeqId;
    }

    @Basic
    @Column(name = "etl_timestamp")
    public Timestamp getEtlTimestamp() {
        return etlTimestamp;
    }

    public void setEtlTimestamp(Timestamp etlTimestamp) {
        this.etlTimestamp = etlTimestamp;
    }

    @Basic
    @Column(name = "etl_event_node")
    public String getEtlEventNode() {
        return etlEventNode;
    }

    public void setEtlEventNode(String etlEventNode) {
        this.etlEventNode = etlEventNode;
    }

    @Basic
    @Column(name = "etl_event_name")
    public String getEtlEventName() {
        return etlEventName;
    }

    public void setEtlEventName(String etlEventName) {
        this.etlEventName = etlEventName;
    }

    @Basic
    @Column(name = "etl_evt_seq_id")
    public String getEtlEvtSeqId() {
        return etlEvtSeqId;
    }

    public void setEtlEvtSeqId(String etlEvtSeqId) {
        this.etlEvtSeqId = etlEvtSeqId;
    }

    @Basic
    @Column(name = "ope_id")
    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    @Basic
    @Column(name = "ope_ver")
    public String getOpeVer() {
        return opeVer;
    }

    public void setOpeVer(String opeVer) {
        this.opeVer = opeVer;
    }

    @Basic
    @Column(name = "ope_dsc")
    public String getOpeDsc() {
        return opeDsc;
    }

    public void setOpeDsc(String opeDsc) {
        this.opeDsc = opeDsc;
    }

    @Basic
    @Column(name = "shop_key_fk")
    public Integer getShopKeyFk() {
        return shopKeyFk;
    }

    public void setShopKeyFk(Integer shopKeyFk) {
        this.shopKeyFk = shopKeyFk;
    }

    @Basic
    @Column(name = "shop_id")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @Basic
    @Column(name = "proc_id")
    public String getProcId() {
        return procId;
    }

    public void setProcId(String procId) {
        this.procId = procId;
    }

    @Basic
    @Column(name = "eqpt_gp_key_fk")
    public Integer getEqptGpKeyFk() {
        return eqptGpKeyFk;
    }

    public void setEqptGpKeyFk(Integer eqptGpKeyFk) {
        this.eqptGpKeyFk = eqptGpKeyFk;
    }

    @Basic
    @Column(name = "eqpt_gp_id")
    public String getEqptGpId() {
        return eqptGpId;
    }

    public void setEqptGpId(String eqptGpId) {
        this.eqptGpId = eqptGpId;
    }

    @Basic
    @Column(name = "eqpt_run_mode")
    public String getEqptRunMode() {
        return eqptRunMode;
    }

    public void setEqptRunMode(String eqptRunMode) {
        this.eqptRunMode = eqptRunMode;
    }

    @Basic
    @Column(name = "ope_seq_no")
    public Integer getOpeSeqNo() {
        return opeSeqNo;
    }

    public void setOpeSeqNo(Integer opeSeqNo) {
        this.opeSeqNo = opeSeqNo;
    }

    @Basic
    @Column(name = "pep_lvl")
    public String getPepLvl() {
        return pepLvl;
    }

    public void setPepLvl(String pepLvl) {
        this.pepLvl = pepLvl;
    }

    @Basic
    @Column(name = "up_load_id")
    public String getUpLoadId() {
        return upLoadId;
    }

    public void setUpLoadId(String upLoadId) {
        this.upLoadId = upLoadId;
    }

    @Basic
    @Column(name = "dn_load_id")
    public String getDnLoadId() {
        return dnLoadId;
    }

    public void setDnLoadId(String dnLoadId) {
        this.dnLoadId = dnLoadId;
    }

    @Basic
    @Column(name = "wk_cent_id")
    public String getWkCentId() {
        return wkCentId;
    }

    public void setWkCentId(String wkCentId) {
        this.wkCentId = wkCentId;
    }

    @Basic
    @Column(name = "wk_cent_dsc")
    public String getWkCentDsc() {
        return wkCentDsc;
    }

    public void setWkCentDsc(String wkCentDsc) {
        this.wkCentDsc = wkCentDsc;
    }

    @Basic
    @Column(name = "evt_cate")
    public String getEvtCate() {
        return evtCate;
    }

    public void setEvtCate(String evtCate) {
        this.evtCate = evtCate;
    }

    @Basic
    @Column(name = "evt_user")
    public String getEvtUser() {
        return evtUser;
    }

    public void setEvtUser(String evtUser) {
        this.evtUser = evtUser;
    }

    @Basic
    @Column(name = "evt_timestamp")
    public Timestamp getEvtTimestamp() {
        return evtTimestamp;
    }

    public void setEvtTimestamp(Timestamp evtTimestamp) {
        this.evtTimestamp = evtTimestamp;
    }

    @Basic
    @Column(name = "evt_note")
    public String getEvtNote() {
        return evtNote;
    }

    public void setEvtNote(String evtNote) {
        this.evtNote = evtNote;
    }

    @Basic
    @Column(name = "ope_type")
    public String getOpeType() {
        return opeType;
    }

    public void setOpeType(String opeType) {
        this.opeType = opeType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MOpeD mOpeD = (MOpeD) o;
        return opeKey == mOpeD.opeKey &&
                Objects.equals(unqSeqId, mOpeD.unqSeqId) &&
                Objects.equals(etlTimestamp, mOpeD.etlTimestamp) &&
                Objects.equals(etlEventNode, mOpeD.etlEventNode) &&
                Objects.equals(etlEventName, mOpeD.etlEventName) &&
                Objects.equals(etlEvtSeqId, mOpeD.etlEvtSeqId) &&
                Objects.equals(opeId, mOpeD.opeId) &&
                Objects.equals(opeVer, mOpeD.opeVer) &&
                Objects.equals(opeDsc, mOpeD.opeDsc) &&
                Objects.equals(shopKeyFk, mOpeD.shopKeyFk) &&
                Objects.equals(shopId, mOpeD.shopId) &&
                Objects.equals(procId, mOpeD.procId) &&
                Objects.equals(eqptGpKeyFk, mOpeD.eqptGpKeyFk) &&
                Objects.equals(eqptGpId, mOpeD.eqptGpId) &&
                Objects.equals(eqptRunMode, mOpeD.eqptRunMode) &&
                Objects.equals(opeSeqNo, mOpeD.opeSeqNo) &&
                Objects.equals(pepLvl, mOpeD.pepLvl) &&
                Objects.equals(upLoadId, mOpeD.upLoadId) &&
                Objects.equals(dnLoadId, mOpeD.dnLoadId) &&
                Objects.equals(wkCentId, mOpeD.wkCentId) &&
                Objects.equals(wkCentDsc, mOpeD.wkCentDsc) &&
                Objects.equals(evtCate, mOpeD.evtCate) &&
                Objects.equals(evtUser, mOpeD.evtUser) &&
                Objects.equals(evtTimestamp, mOpeD.evtTimestamp) &&
                Objects.equals(evtNote, mOpeD.evtNote) &&
                Objects.equals(opeType, mOpeD.opeType);
    }

    @Override
    public int hashCode() {

        return Objects.hash(opeKey, unqSeqId, etlTimestamp, etlEventNode, etlEventName, etlEvtSeqId, opeId, opeVer, opeDsc, shopKeyFk, shopId, procId, eqptGpKeyFk, eqptGpId, eqptRunMode, opeSeqNo, pepLvl, upLoadId, dnLoadId, wkCentId, wkCentDsc, evtCate, evtUser, evtTimestamp, evtNote, opeType);
    }
}
